#include "GameScene.h"
#include "GamePad.h"

bool GameScene::init()
{
    bool ret = false;
    do 
    {
        CC_BREAK_IF(!CCScene::init());

        CCSize winSize = CCDirector::sharedDirector()->getWinSize();
        gamePad = GamePad::create();
        gamePad->setPosition(ccp(winSize.width /2 ,winSize.height /2));
        this->addChild(gamePad);

        ret = true;
    } while (false);
    return ret;
}

CCScene * GameScene::scene()
{
    return GameScene::create();
}
